<template>
  <div class="container" :style="bg">
    <div class="content" :style="contentBg">
      <div class="userHeader">
        <img :src="info.photo+'?width=50&height=50'" alt />
      </div>
      <div class="info">
        <div>{{info.name}}</div>
        <div>{{info.position}}</div>
      </div>
      <div class="introduceList">
        <!-- <div class="introduceitem">
          <div>
            <img src="./../assets/images/info/zhigonghao.png" alt />
          </div>
          <div>员工编号: {{info.code}}</div>
        </div> -->

              <div class="introduceitem">
          <div>
            <img src="./../assets/images/info/rongyu.png" alt />
          </div>
          <div>{{info.honorDesc == ''? '暂无':info.honorDesc}}</div>
        </div>


              <div class="introduceitem">
          <div>
            <img src="./../assets/images/info/target.png" alt />
          </div>
          <div>{{info.resume ==''? '暂无':info.resume}}</div>
        </div>

              <div class="introduceitem">
          <div>
            <img src="./../assets/images/info/yezi.png" alt />
          </div>
          <div>{{info.motto == ''? '暂无':info.motto}}</div>
        </div>


      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      info:{},
      bg: {
        backgroundImage:
          "url(" + require("./../assets/images/info/bg.png") + ")"
      },
      contentBg: {
        backgroundImage:
          "url(" + require("./../assets/images/info/contentBg.png") + ")"
      }
    };
  },
  mounted(){
     this.pubilcM.setTitle("经理信息");
    this.info = this.$route.query.info;
    console.log(this.info)
  }
};
</script>
<style scoped>
.info {
  text-align: center;
}
.info div:nth-child(1) {
  font-size: 0.4rem;
  font-weight: bold;
  color: #3f3f3f;
}
.info div:nth-child(2) {
  font-size: 0.26rem;
  color: #3f3f3f;
}
.container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  padding: 0.7rem 0.4rem 0.6rem 0.4rem;
  background-repeat: "no-repeat";
  background-size: "100% 100%";
}
.content {
  width: 100%;
  height: 100%;
  background-repeat: "no-repeat";
  background-size: "100% 100%";
  border-radius: 0.1rem;
  position: relative;
  padding-top: 1.6rem;
  box-sizing: border-box;
  padding-left: 0.3rem;
  padding-right: 0.3rem;
}
.userHeader {
  width: 1.8rem;
  height: 1.8rem;
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  left: 0;
  right: 0;
  margin: 0 auto;
  top: 5%;
  border: 2px solid #fff;
  border-radius: 0.1rem;
  box-shadow: 0px -1px 7px 0px #000;
}
.userHeader > img {
  width: 100%;
  height: 100%;
  border-radius: 0.1rem;
}
.introduceList {
  width: 100%;
    margin-top: 0.4rem;
}
.introduceitem {
  display: flex;
line-height: 0.4rem;
  color: #46392a;
    margin-bottom: 0.3rem;
}
.introduceitem div:nth-child(1) {
    line-height: 0.4rem;
  margin-right: 0.2rem;
  width: 0.3rem;
  height: 0.3rem;
}
.introduceitem div:nth-child(1) img {
  width: 100%;
}
</style>